import { App, DefineComponent } from 'vue'
import Icon from './Icon/index.vue'
import Hamburger from './Hamburger/index.vue'
import View from './View/index.vue'

const components: Array<DefineComponent | any> = [
  Icon,
  Hamburger,
  View,
]

const install = function install(app: App) {
  components.forEach(component => {
    app.component(component.name, component)
  })
}

export default { install }
